package com.socene.kotlin

import com.socene.kotlin.entity.User
import com.socene.kotlin.service.UserService
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner

@RunWith(SpringRunner::class)
@SpringBootTest
class KotlinDemoApplicationTests {

	@Autowired lateinit var userService:UserService

	@Test
	fun contextLoads() {

		var x = 101
		while (x<200){
			userService.save(User(username = "Z$x",password = "admin"))
			x++
		}


	}

}
